package com.bw.zhuangao5___day002.Fragment.aaa;

import android.content.Context;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.PagerSnapHelper;
import androidx.recyclerview.widget.RecyclerView;

/**
 * 作者:二徒
 * 时间：2021/11/4- 12:49
 * 功能实现：
 */
public class Baseas  extends LinearLayoutManager {
    PagerSnapHelper pagerSnapHelper;

    public Baseas(Context context) {
        super(context);
    }

    public Baseas(Context context, int orientation, boolean reverseLayout) {
        super(context, orientation, reverseLayout);
    }

    @Override
    public void onAttachedToWindow(RecyclerView view) {
        super.onAttachedToWindow(view);
        pagerSnapHelper= new PagerSnapHelper();
        pagerSnapHelper.attachToRecyclerView(view);
    }
}
